const $file = require('../utils/file')

function fun(program) {
    program
        .command('init <project-name>')
        .description('创建模板项目或者组件')
        .option('-f,--force', '覆盖目标目录')
        .action(async (projectName, cmd) => {
            await $file.cloneProject(projectName, cmd)
        });
}

module.exports = fun;
